package com.woniuxy;

public class Test06 {
    public static void main(String[] args) {


        byte b1=1;
        byte b2=2;
//        int b3=b1+b2;
        byte b3=(byte)(b1+b2);
        short s1=1;
        short s2=2;
        short s3=(short)(s2+s1);
//        int s3=s2+s1;
        byte b4= (byte) (b1+s1);
//        int b4=b1+s1;


        int i1=1;
        int i2=2;
        int i3=i1+i2;
        float f1=1.1F;
        double d1=1.1;

//        float f2=b1+s1+i1+f1;
        int f2= (int) (b1+s1+i1+f1);
//        float f3=b1+s1+i1+f1+d1;
        double d2=b1+s1+i1+f1+d1;

        System.out.println(17/7);
        System.out.println(17/7.0);

        double d6=1.1;
        float f6=(float) d6;
        System.out.println(1.1);

        int i6= (int) d6;
        System.out.println(i6);

        int i7=127;
        byte b7= (byte) i7;
        System.out.println(b7);
        int i8=128;
        byte b8= (byte) i8;
        System.out.println(b8);
    }
}
